package com.scalar.chiptrack.jobs.forms;

import com.scalar.chiptrack.ChipTrackActionForm;
import com.scalar.chiptrack.jobs.Job;

import java.util.ArrayList;

/**
 * User: Administrator
 * Date: Jan 22, 2008
 * Time: 5:59:47 PM
 */
public class JobAdminForm extends ChipTrackActionForm
{


  private int jobId = 0;
  private int statusId = 0;

  private String status = null;
  private String startDate = null;
  private String endDate = null;




    public int getJobId() {
        return jobId;
    }

    public void setJobId(int jobId) {
        this.jobId = jobId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }
    public ArrayList getStatusList()
    {
        ArrayList statusList = new ArrayList();
        statusList.add(new org.apache.struts.util.LabelValueBean(Job.STATUS_DONE , Job.STATUS_DONE));
        statusList.add(new org.apache.struts.util.LabelValueBean(Job.STATUS_FAILED, Job.STATUS_FAILED));
        statusList.add(new org.apache.struts.util.LabelValueBean(Job.STATUS_ABORTED, Job.STATUS_ABORTED));
        return statusList;
    }
}
